package com.meilele.controller.hongdian;

import com.meilele.biz.hongdian.ThiShowBiz;
import com.meilele.entity.hongdian.ThiShow;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
@RequestMapping("/third")
public class ThiShowController {

    @Resource
    private ThiShowBiz showBiz;

    @RequestMapping("/first")
    public String first(Model model, int showId){
        long totalConut = showBiz.findCount(showId);
        ThiShow thiShow = showBiz.findAllDetails(showId);
        model.addAttribute("thiShow",thiShow);
        model.addAttribute("totalConut",totalConut);
        return "/third/house-1";
    }

}
